

var oldId = 1;
function loadMenu(id) {
	if (oldId != id) {
		$("#mynav" + id).attr("class", "nav_on");
		$("#mynav" + oldId).attr("class", "nav_off");
	}
	 var leftFrame = window.parent.document.getElementById("leftFrame");
	var rightFrame = window.parent.document.getElementById("rightFrame");
	 leftFrame.contentWindow.loadMenuById(id);
	var _left_main_frmset = window.parent.document.getElementById("lastFrame");
	if (id == "1") {
		rightFrame.src = "home.action";
		_left_main_frmset.cols = "0,*";
	} else {
		if (id == "141") {
			rightFrame.src = "taskPoliceTeamList.action";
		} else if (id == "6") {
				rightFrame.src = "noticeListManage.action";
			} else if (id == "34") {
					rightFrame.src = "inMailManager.action";
			} else if (id == "40") {
					rightFrame.src = "waitFiel.action";
			} else if (id == "25") {
					rightFrame.src = "searchMyDocumentOut.action";
			} else  if (id == "45") {
					rightFrame.src = "getOrgWorkFlow.action?status=start";
			} else if (id == "83") {
					rightFrame.src = "receivedMessages.action";
			} else if (id == "91") {
				rightFrame.src = "jsp/helppage/loadhelp1.html";
			} else if (id == "50") {
				rightFrame.src = "userManager.action";
			} else {
				rightFrame.src = "main.html";
			}
		 	   _left_main_frmset.cols = "160,*";
			}
	
	oldId = id;
}

